package com.fastCms.business.bim.service;

import com.fastCms.business.bim.pojo.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 设备主表 服务类
 * </p>
 *
 * @author liusq
 * @since 2021-03-25
 */
public interface DeviceService extends IService<Device> {

    Device findById(Integer deviceId);

    Device findByDeviceCode(String deviceCode);

    Device findByDeviceCode2(String deviceCode);

    Device findByDeviceCodeAndState(int state, String deviceCode);

    public int countDeviceTypeIn(List<Integer> deviceTypeIds);

    int countDeviceType(Integer deviceTypeId);


    List<Device> findByIds(ArrayList<Integer> deviceIds);


}
